package com.xuecheng.api.content;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程的详情信息课程预览",tags = "描述：课程预览api -coursepub表",description = "课程的详情信息")
public interface CoursePubApi {

    @ApiOperation(value = "课程预览")
    @ApiImplicitParams(
            {@ApiImplicitParam(name = "courseId",value = "课程id",required = true,dataType = "Long",paramType = "path"),
                    @ApiImplicitParam(name = "companyId",value = "机构id",required = true,dataType = "Long",paramType = "path")}
    )
    Object previewCourse(Long courseId,Long companyId);


    @ApiOperation(value = "课程发布")
    @ApiImplicitParam(name = "courseId",value = "课程的id",dataType = "Long",required = true,paramType = "path")
    void publish(Long courseId);


}
